import Vue from "vue"
import Vuex from 'vuex'
// 挂载购物车模块
import moduleCart from './cart.js'
import moduleUser from './user.js'

Vue.use(Vuex)

const store = new Vuex.Store({
  // 挂载store模块
  modules:{
    m_cart: moduleCart,
    m_user: moduleUser
  },
})

export default store